﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="UsersManage.aspx.cs" Inherits="Common_UsersManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
  <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster" DataMember="Users">
        </InfoLight:WebDataSource>
        <InfoLight:WebDefault ID="WebDefault1" runat="server" DataMember="Users" DataSourceID="Master">
            <Fields>
                <InfoLight:DefaultFieldItem FieldName="USERID" />
                <InfoLight:DefaultFieldItem DefaultValue="_Today" FieldName="CREATEDATE" />
            </Fields>
        </InfoLight:WebDefault>
        <InfoLight:WebDataSource ID="wdsEmployeeId" runat="server" CacheDataSet="True" SelectAlias="Usasdb"
            SelectCommand="SELECT Employees.EmployeeID, Employees.EmpName, &#13;&#10;      Department.DepartmentName&#13;&#10;FROM Employees INNER JOIN&#13;&#10;      Department ON &#13;&#10;      Employees.DepartmentId = Department.DepartmentId&#13;&#10;WHERE (Employees.EmpStatus = 1)">
        </InfoLight:WebDataSource>
        <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" DataMember="Users"
            DataSourceID="Master" ForeColor="Red" RowCss=""><Fields>
<InfoLight:ValidateFieldItem FieldName="USERID" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="USERNAME" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="EMAIL" Validate="ValidateEmail()"></InfoLight:ValidateFieldItem>
</Fields>
</InfoLight:WebValidate>
<InfoLight:WebNavigator ID="WebNavigator1" runat="server"
            BindingObject="wgvMaster" StatusStrip="WebStatusStrip1" Width="100%" 
        CssClass="NavigatorBar" CtlHeight="25">
            <NavStates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </NavStates>
            <NavControls>
                <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../image/uipics/first3_C.gif" ImageUrl="../image/uipics/first_C.gif"
                    MouseOverImageUrl="../image/uipics/first2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image"
                    ControlVisible="False" DisenableImageUrl="../image/uipics/previous3_C.gif" ImageUrl="../image/uipics/previous_C.gif"
                    MouseOverImageUrl="../image/uipics/previous2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../image/uipics/next3_C.gif" ImageUrl="../image/uipics/next_C.gif"
                    MouseOverImageUrl="../image/uipics/next2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../image/uipics/last3_C.gif" ImageUrl="../image/uipics/last_C.gif"
                    MouseOverImageUrl="../image/uipics/last2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../image/uipics/add3_C.gif" ImageUrl="../image/uipics/add_C.gif"
                    MouseOverImageUrl="../image/uipics/add2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../image/uipics/apply3_C.gif" ImageUrl="../image/uipics/apply_C.gif"
                    MouseOverImageUrl="../image/uipics/apply2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../image/uipics/abort3_C.gif" ImageUrl="../image/uipics/abort_C.gif"
                    MouseOverImageUrl="../image/uipics/abort2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../image/uipics/query3_C.gif" ImageUrl="../image/uipics/query_C.gif"
                    MouseOverImageUrl="../image/uipics/query2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../image/uipics/print3_C.gif" ImageUrl="../image/uipics/print_C.gif"
                    MouseOverImageUrl="../image/uipics/print2_C.gif" Size="48" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Export3_C.gif" ImageUrl="../Image/UIPics/Export_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2_C.gif" Size="48" />
            </NavControls>
        </InfoLight:WebNavigator>
        <InfoLight:webgridview id="wgvMaster" runat="server"
            cellpadding="5" datasourceid="Master" forecolor="#333333" width="100%" 
        AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif" 
        ApplyIconUrl="../Image/UIPics/Apply.gif" 
        CancelIconUrl="../Image/UIPics/Cancel.gif" 
        MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" 
        MouseOverAddIconUrl="../Image/UIPics/Add2.gif" 
        MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" 
        MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif" 
        MouseOverOKIconUrl="../Image/UIPics/OK2.gif" 
        MouseOverQueryIconUrl="../Image/UIPics/Query2.gif" 
        OKIconUrl="../Image/UIPics/OK.gif" QueryIconUrl="../Image/UIPics/Query.gif" 
        HeaderStyleWrap="False" BackColor="White" BorderColor="White" 
        BorderStyle="Groove" BorderWidth="2px" PageSize="15">
            <PagerSettings Mode="NumericFirstLast" />
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
            <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <edititemtemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update" CausesValidation="True" __designer:wfdid="w28"></asp:ImageButton>&nbsp; <asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel" CausesValidation="False" __designer:wfdid="w29"></asp:ImageButton> 
</edititemtemplate>
                    <headerstyle wrap="False" />
                    <itemtemplate>
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" ImageUrl="~/Image/UIPics/Edit.gif" CommandName="Edit" CausesValidation="False" __designer:wfdid="w26"></asp:ImageButton>&nbsp; <asp:ImageButton id="ImageButton4" runat="server" Text="Delete" ImageUrl="~/Image/UIPics/Delete.gif" CommandName="Delete" CausesValidation="False" __designer:wfdid="w27"></asp:ImageButton> 
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="USERID" HeaderText="用户编号" SortExpression="USERID" />
                <asp:BoundField DataField="USERNAME" HeaderText="用户名" SortExpression="USERNAME" />
                <asp:TemplateField HeaderText="员工姓名" SortExpression="EmployeeID">
                    <edititemtemplate>
<InfoLight:WebRefVal id="WebRefVal1" runat="server" DataSourceID="wdsEmployeeId" Width="104px" ReadOnly="False" __designer:wfdid="w35" PostBackButonClick="False" UpdatePanelID ResxFilePath ResxDataSet UseButtonImage="True" BindingText MultiLanguage="False" DataBindingField="EmployeeID" AllowAddData="False" BindingValue='<%# Bind("EmployeeID") %>' ButtonImageUrl="../Image/refval/RefVal.gif" DataTextField="EmpName" DataValueField="EmployeeID"></InfoLight:WebRefVal> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebRefVal id="WebRefVal1" runat="server" DataSourceID="wdsEmployeeId" Width="104px" ReadOnly="False" __designer:wfdid="w36" PostBackButonClick="False" UpdatePanelID ResxFilePath ResxDataSet UseButtonImage="True" BindingText MultiLanguage="False" DataBindingField="EmployeeID" AllowAddData="False" BindingValue='<%# Bind("EmployeeID") %>' ButtonImageUrl="../Image/refval/RefVal.gif" DataTextField="EmpName" DataValueField="EmployeeID"></InfoLight:WebRefVal> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebRefVal id="WebRefVal1" runat="server" DataSourceID="wdsEmployeeId" Width="104px" ReadOnly="True" __designer:wfdid="w34" PostBackButonClick="False" UpdatePanelID ResxFilePath ResxDataSet UseButtonImage="True" BindingText MultiLanguage="False" DataBindingField="EmployeeID" AllowAddData="False" BindingValue='<%# Bind("EmployeeID") %>' ButtonImageUrl="../Image/refval/RefVal.gif" DataTextField="EmpName" DataValueField="EmployeeID"></InfoLight:WebRefVal> 
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="AGENT" HeaderText="代理者" SortExpression="AGENT" Visible="False" />
                <asp:BoundField DataField="PWD" HeaderText="PWD" SortExpression="PWD" Visible="False" />
                <asp:TemplateField HeaderText="创建日期" SortExpression="CREATEDATE">
                    <edititemtemplate>
<InfoLight:WebDateTimePicker id="WebDateTimePicker1" runat="server" Width="120px" __designer:wfdid="w23" DateFormat="ShortDate" DateTimeType="VarChar" DateString='<%# Bind("CREATEDATE") %>'></InfoLight:WebDateTimePicker> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDateTimePicker id="WebDateTimePicker1" runat="server" Width="120px" __designer:wfdid="w24" DateFormat="ShortDate" DateTimeType="VarChar" DateString='<%# Bind("CREATEDATE") %>'></InfoLight:WebDateTimePicker> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebDateTimePicker id="WebDateTimePicker1" runat="server" Width="120px" BorderStyle="None" __designer:wfdid="w25" DateFormat="ShortDate" ReadOnly="True" DateTimeType="VarChar" DateString='<%# Bind("CREATEDATE") %>'></InfoLight:WebDateTimePicker>
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CREATER" HeaderText="创建者" SortExpression="CREATER" Visible="False" />
                <asp:BoundField DataField="DESCRIPTION" HeaderText="说明" SortExpression="DESCRIPTION" />
                <asp:BoundField DataField="EMAIL" HeaderText="EMAIL" SortExpression="EMAIL" />
                <asp:BoundField DataField="LASTTIME" HeaderText="登陆时间" SortExpression="LASTTIME"
                    Visible="False" />
                <asp:BoundField DataField="AUTOLOGIN" HeaderText="自动登陆" SortExpression="AUTOLOGIN"
                    Visible="False" />
                <asp:BoundField DataField="LASTDATE" HeaderText="登陆日期" SortExpression="LASTDATE"
                    Visible="False" />
                <asp:BoundField DataField="SIGNATURE" HeaderText="SIGNATURE" SortExpression="SIGNATURE"
                    Visible="False" />
                <asp:BoundField DataField="MSAD" HeaderText="AD用户" SortExpression="MSAD" Visible="False" />
</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
            <AddNewRowControls>
                <InfoLight:AddNewRowControlItem ControlID="WebDateTimePicker1" ControlType="DateTimePicker"
                    FieldName="CREATEDATE" />
                <InfoLight:AddNewRowControlItem ControlID="WebRefVal1" ControlType="RefVal" FieldName="EmployeeID" />
            </AddNewRowControls>
</InfoLight:webgridview>
</asp:Content>

